#at first type on ur terminal that $(uname -r) then u will get the version..
# that is using on ur system

obj-m += global_mem.o

KDIR =/lib/modules/$(shell uname -r)/build

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

test:
	echo "hello word" > /dev/globalmem
	cat /dev/globalmem

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
